Skip to content

Conversation

pamelafox
Copy link
Collaborator

Purpose

This PR adds support for the new GPT-5 model family, adding -chat to the normal list in the docs, and the other ones to the reasoning docs/code. I do not yet have access to gpt-5 proper so couldnt do a full test with that, but gpt-5-mini and gpt-5-nano work as expected.

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[X] No

Type of change

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

  • The current tests all pass (python -m pytest).
  • I added tests that prove my fix is effective or that my feature works
  • I ran python -m pytest --cov to verify 100% coverage of added lines
  • I ran python -m mypy to check for type errors
  • I either used the pre-commit hooks or ran ruff and black manually on my code.

@pamelafox pamelafox requested a review from Copilot August 7, 2025 18:46
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the GPT-5 model family, including gpt-5, gpt-5-mini, gpt-5-nano, and gpt-5-chat variants. The changes integrate these new models into the existing reasoning model infrastructure and update documentation with configuration examples.

Key changes:

  • Adds GPT-5 model variants to the reasoning model support configuration
  • Updates documentation with deployment instructions for GPT-5 models
  • Introduces "minimal" effort option for GPT-5 reasoning models

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/reasoning.md Adds GPT-5 models to supported list and configuration examples, updates reasoning effort options
docs/deploy_features.md Adds gpt-5-chat deployment configuration examples
app/backend/approaches/approach.py Registers GPT-5 model variants in reasoning model support dictionary

@pamelafox pamelafox merged commit 570e530 into Azure-Samples:main Aug 7, 2025
25 checks passed
@pamelafox pamelafox deleted the gpt5models branch August 7, 2025 18:58
CWade3051 added a commit to walmart-acquisition-tech/azure-search-openai-demo that referenced this pull request Aug 8, 2025
Add support for GPT-5 model family (Azure-Samples#2667)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant